package net.atos.java.example.boodschappen.server;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Boodschappen queue service.
 * 
 * @author Pal Hargitai
 */
public class BoodschappenQueueServiceImpl extends HttpServlet {

	/** Logger. */
	private static final Logger LOGGER = Logger.getLogger(BoodschappenQueueServiceImpl.class.getName());
	/** Serial id. */
	private static final long serialVersionUID = -2755642530820684005L;

	/** {@inheritDoc} */
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		String userId = req.getParameter("user");
		LOGGER.info(String.format("Stuur boodschappen lijst voor gebruiker '%s'.", userId));
		// Mail boodscappen lijst...
	}
}
